package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.CategoryEntity;
import com.example.gulimall.product.vo.Catelog2Vo;
import com.sun.javafx.collections.MappingChange;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lizhichao
 * @email sunlightcs@gmail.com
 * @date 2021-08-15 16:09:01
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);


    List<CategoryEntity> listWithTree();
    int removeList(List<Long> aslist);
    Long[] getFindCategoryPath(Long catId);

    void saveDetail(CategoryEntity category);

   Map<String, List<Catelog2Vo>> getCataLogJson() throws InterruptedException;

    List<CategoryEntity> getLevel1Categorys();
}
